package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class BrandUpdateInfoParam implements Serializable {

    @NotNull(message = "必须提交品牌的名字")
    @ApiModelProperty(value = "品牌名称",required = true,example = "dada的品牌")
    private String name;

    @NotNull(message = "必须提交品牌的拼音")
    @ApiModelProperty(value = "品牌拼音",required = true,example = "dada的拼音")
    private String pinyin;

    @ApiModelProperty(value = "品牌网址",required = true,example = "dada的网址")
    private String logo;

    @ApiModelProperty(value = "品牌简介",required = true,example = "dada的简介")
    private String description;

    @ApiModelProperty(value = "品牌关键字",required = true,example = "dada的关键字")
    private String keywords;

    @Range(max = 99,message = "序号必须是0-99")
    @NotNull(message = "必须提交品牌的排序号")
    @ApiModelProperty(value = "品牌序号",required = true,example = "45")
    private Integer sort;


}
